<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>环境检测</title>
	<hdjs/>
</head>
<body>
	<div class='title-header'>目录检测</div>
	<table class="table1">
	 	<list from='$dir' name='d'>
			<tr>
				<th class='w100'>{$d}</th>
				<td>
					<?php echo is_writable($d)?'<span class="success">On</span>':'<span class="error">Off</span>';?>
				</td>
			</tr>
		 </list>
	</table>
	<br/>
	<div class='title-header'>函数检测</div>
	<table class="table1">
	 	<list from='$functions' name='d'>
			<tr>
				<th class='w200'>{$d}</th>
				<td>
					<?php echo function_exists($d)?'<span class="success">On</span>':'<span class="error">Off</span>';?>
				</td>
			</tr>
		 </list>
	</table>
	<div class='position-bottom'>
	<a href="{|U:'index'}" class='hd-cancel'>上一步</a>
	<a href="javascript:;" url='{|U:'set_db'}' class='hd-success' onclick='check(this);'>下一步</a>
	</div>
	<script>
		function check(obj){
			if($('.error').length>0){
				alert("安装环境不通过,请修正!");
				return false;
			}
			//通过进行下一步
			var url= $(obj).attr('url');
			location.href=url;
		}
	</script>
	</body>
</html>